﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true" CodeBehind="MDept.aspx.cs" Inherits="WebSystem.MDept" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        .auto-style1 {
            width: 100%;
        }
        .auto-style4 {
            text-align: right;
            height: 23px;
            width: 304px;
        }
        .auto-style5 {
            width: 223px;
            text-align: left;
            height: 23px;
        }
        .auto-style6 {
            height: 23px;
        }
        .auto-style3 {
            text-align: right;
            width: 304px;
        }
        .auto-style2 {
            width: 223px;
            text-align: left;
        }
        .auto-style7 {
            text-align: right;
            width: 304px;
            height: 27px;
        }
        .auto-style8 {
            width: 223px;
            text-align: left;
            height: 27px;
        }
        .auto-style9 {
            height: 27px;
        }
        .auto-style10 {
            text-align: right;
            width: 304px;
            height: 20px;
        }
        .auto-style11 {
            width: 223px;
            text-align: left;
            height: 20px;
        }
        .auto-style12 {
            height: 20px;
        }
        .auto-style13 {
            text-align: right;
            width: 304px;
            height: 25px;
        }
        .auto-style14 {
            width: 223px;
            text-align: left;
            height: 25px;
        }
        .auto-style15 {
            height: 25px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <br />
    </p>
    <table class="auto-style1">
        <tr>
            <td colspan="3" style="text-align: center">
                <asp:Label ID="Label1" runat="server" Font-Size="XX-Large" Text="学院管理"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="auto-style4">
                <asp:Label ID="lblClano" runat="server" Text="输入学院编号"></asp:Label>
            </td>
            <td class="auto-style5">
                <asp:TextBox ID="txtDno" runat="server"></asp:TextBox>
            </td>
            <td class="auto-style6">
                <asp:Button ID="btnOut" runat="server" OnClick="btnOut_Click" style="height: 21px; margin-top: 0px;" Text="显示数据" />
&nbsp;&nbsp;
                <asp:Button ID="btnDel" runat="server" OnClick="btnDel_Click" Text="删除数据" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
        </tr>
        <tr>
            <td class="auto-style13">
                <asp:Label ID="lblCla" runat="server" Text="学院名称"></asp:Label>
            </td>
            <td class="auto-style14">
                <asp:TextBox ID="txtDname" runat="server"></asp:TextBox>
            </td>
            <td class="auto-style15">
                <asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Text="重置" />
            </td>
        </tr>
        <tr>
            <td class="auto-style3">
                &nbsp;</td>
            <td class="auto-style2">
                &nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style7"></td>
            <td class="auto-style8">
                <asp:Button ID="btnUpd" runat="server" OnClick="btnUpd_Click" Text="更新数据" />
&nbsp;<asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="增加数据" />
&nbsp;&nbsp;&nbsp; </td>
            <td class="auto-style9">
                <asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="显示新学院表" />
            </td>
        </tr>
        <tr>
            <td class="auto-style3">&nbsp;</td>
            <td class="auto-style2">
                <asp:Label ID="lblInfo" runat="server" ForeColor="Red"></asp:Label>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style10">
                &nbsp;</td>
            <td class="auto-style11">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Dno" DataSourceID="SqlDataSource1" OnSelectedIndexChanged="btnDel_Click">
                    <Columns>
                        <asp:BoundField DataField="Dno" HeaderText="学院编号" ReadOnly="True" SortExpression="Dno" />
                        <asp:BoundField DataField="Dname" HeaderText="学院名称" SortExpression="Dname" />
                    </Columns>
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dhd2014115121ConnectionString %>" SelectCommand="SELECT * FROM [Dept]"></asp:SqlDataSource>
            </td>
            <td class="auto-style12"></td>
        </tr>
    </table>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
